package sv.gob.mh.dgii.model;

// Generated Dec 12, 2007 1:25:05 PM by Hibernate Tools 3.2.0.CR1

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * EdMora generated by hbm2java
 */
@Entity
@Table(name = "ED_MORA", schema = "EDADEPUDOC")
public class EdMora implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -7025703158713376855L;
	private String nit;
	private TbTipoMora tbTipoMora;
	private String cusu;
	private Date fhproceso;

	public EdMora() {
	}

	public EdMora(String nit, TbTipoMora tbTipoMora, String cusu, Date fhproceso) {
		this.nit = nit;
		this.tbTipoMora = tbTipoMora;
		this.cusu = cusu;
		this.fhproceso = fhproceso;
	}

	@Id
	@Column(name = "NIT", unique = true, nullable = false, length = 14)
	public String getNit() {
		return this.nit;
	}

	public void setNit(String nit) {
		this.nit = nit;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "B_MORA", nullable = false)
	public TbTipoMora getTbTipoMora() {
		return this.tbTipoMora;
	}

	public void setTbTipoMora(TbTipoMora tbTipoMora) {
		this.tbTipoMora = tbTipoMora;
	}

	@Column(name = "C_USU", nullable = false, length = 30)
	public String getCusu() {
		return this.cusu;
	}

	public void setCusu(String cusu) {
		this.cusu = cusu;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "FH_PROCESO", nullable = false, length = 7)
	public Date getFhproceso() {
		return this.fhproceso;
	}

	public void setFhproceso(Date fhproceso) {
		this.fhproceso = fhproceso;
	}

}
